package com.shujia.java.day3;

public class Demo19jiujiu {
    public static void main(String[] args) {

        /**
         * 打印九九乘法表
         * 1 * 1 = 1
         * 1 * 2 = 2   2 * 2 = 4
         * 1 * 3 = #   2 * 3 = 6  3 * 3 = 9
         *
         */


        /**
         * 外层循环控制行
         * 内层循环控制列
         */
        for (int i = 1; i <= 9; i++) {

            //内层循环控制列
            for (int j = 1; j <= i; j++) {
                System.out.print(j + " * " + i + " = " + (i * j) + "\t");
            }

            System.out.println("");

        }
    }
}
